package com.xhl.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xhl.dao.IUserDao;
import com.xhl.vo.Pager;
import com.xhl.vo.UserVO;

@Service
public class UserService implements IUserDao {

    @Autowired
    IUserDao iUsertDao;

    @Override
    public List<UserVO> queryUser(Pager<?> p) {
        return iUsertDao.queryUser(p);
    }

    @Override
    public long count() {
        return iUsertDao.count();
    }

    @Override
    public UserVO queryUserId(int id) {
        return iUsertDao.queryUserId(id);
    }

    @Override
    public Long queryByUserName(String name) {
        return iUsertDao.queryByUserName(name);
    }

    @Override
    public void addUser(UserVO uvo) {
        iUsertDao.addUser(uvo);
    }

    @Override
    public UserVO queryByUserPass(UserVO uvo) {
        return iUsertDao.queryByUserPass(uvo);
    }


}
